package zl.service;


import com.github.pagehelper.PageInfo;
import zl.bean.Category;

import java.sql.SQLException;
import java.util.List;

public interface CategoryService {
    int addCategory(Category category);

    int deleteCategory(Integer id) throws SQLException;

    int updateCategory(Category category);

    List<Category> selectAllCategory();

    Category selectById(Integer id);

    PageInfo<Category> selectByPage(int currentPage, String keyword) throws SQLException;
}
